main/commit: Rework control flow to use --tree=X path
authorColin Walters <walters@verbum.org>
Sat, 21 Mar 2020 17:54:13 +0000 (17:54 +0000)
committerColin Walters <walters@verbum.org>
Mon, 23 Mar 2020 19:03:16 +0000 (19:03 +0000)
commita717535490001242ffcac55e745d702bb942c343
tree57596e256129e12499631bdf0d0a92e9318dd0c9
parentd87301b1114da0d0c82b98ec02d625af27eecc22
main/commit: Rework control flow to use --tree=X path

Rework the simple cases of "commit ." and "commit argv[1]" to
generate the more general "--tree=X --tree=Y" path, so that we
only have one primary control flow here.

Prep for a future patch around loading SELinux policy from
the first argument.
src/ostree/ot-builtin-commit.c